package com.hotel.app.service;

import com.hotel.app.config.OpenFeignConfig;
import com.hotel.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * --- 天道酬勤 ---
 *
 * @author TRC
 * @date 2024/6/17
 * @desc
 */
@FeignClient(value = "ht-room-server", configuration = OpenFeignConfig.class)
public interface HotelRoomCollectFeign {

    /**
     * 用户收藏/取消收藏房间
     * @param collectStatus
     * @param roomId
     * @return
     */
    @RequestMapping("/hotel/roomCollect/change")
    public R changeRoomCollect(@RequestParam("collectStatus") Integer collectStatus, @RequestParam("roomId") Integer roomId);

    /**
     * 获取用户对某房间的收藏状态
     * @param roomId
     * @return
     */
    @RequestMapping("/hotel/roomCollect/getStatus")
    public R selectRoomCollect(@RequestParam("roomId") Integer roomId);

    @RequestMapping("/hotel/roomCollect/show")
    public R showUserCollectRoom();

}
